package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecordedbroadcastMapper;
import com.ruoyi.system.domain.Recordedbroadcast;
import com.ruoyi.system.service.IRecordedbroadcastService;

/**
 * 录播Service业务层处理
 * 
 * @author kinglu
 * @date 2021-11-30
 */
@Service
public class RecordedbroadcastServiceImpl implements IRecordedbroadcastService 
{
    @Autowired
    private RecordedbroadcastMapper recordedbroadcastMapper;

    /**
     * 查询录播
     * 
     * @param id 录播主键
     * @return 录播
     */
    @Override
    public Recordedbroadcast selectRecordedbroadcastById(Long id)
    {
        return recordedbroadcastMapper.selectRecordedbroadcastById(id);
    }

    /**
     * 查询录播列表
     * 
     * @param recordedbroadcast 录播
     * @return 录播
     */
    @Override
    public List<Recordedbroadcast> selectRecordedbroadcastList(Recordedbroadcast recordedbroadcast)
    {
        return recordedbroadcastMapper.selectRecordedbroadcastList(recordedbroadcast);
    }

    /**
     * 新增录播
     * 
     * @param recordedbroadcast 录播
     * @return 结果
     */
    @Override
    public int insertRecordedbroadcast(Recordedbroadcast recordedbroadcast)
    {
        return recordedbroadcastMapper.insertRecordedbroadcast(recordedbroadcast);
    }

    /**
     * 修改录播
     * 
     * @param recordedbroadcast 录播
     * @return 结果
     */
    @Override
    public int updateRecordedbroadcast(Recordedbroadcast recordedbroadcast)
    {
        return recordedbroadcastMapper.updateRecordedbroadcast(recordedbroadcast);
    }

    /**
     * 批量删除录播
     * 
     * @param ids 需要删除的录播主键
     * @return 结果
     */
    @Override
    public int deleteRecordedbroadcastByIds(Long[] ids)
    {
        return recordedbroadcastMapper.deleteRecordedbroadcastByIds(ids);
    }

    /**
     * 删除录播信息
     * 
     * @param id 录播主键
     * @return 结果
     */
    @Override
    public int deleteRecordedbroadcastById(Long id)
    {
        return recordedbroadcastMapper.deleteRecordedbroadcastById(id);
    }


}
